home *** CD-ROM | disk | FTP | other *** search
/ Acorn User: China / Acorn User China CD-ROM (UK) (Disc B) / Acorn User China CD-ROM (UK) (Disc B).bin / STUTTGART / FROMUTS / UNIXLIB37B / clib_h_assert < prev    next >
Encoding:
Text File  |  1991-03-18  |  271 b   |  16 lines

  1. /* assert.h (c) Copyright 1990 H.Rogers */
  2.  
  3. #ifndef __ASSERT_H
  4. #define __ASSERT_H
  5.  
  6. #ifdef NDEBUG
  7. #define assert(x)    ()
  8. #else
  9. extern    int        __fail(char *,char *,int);
  10. #define assert(x)    (void)((x) ? 0 : __fail(#x,__FILE__,__LINE__))
  11. #endif
  12.  
  13. extern void (assert)(int);
  14.  
  15. #endif
  16.